package cn.dcp.muck.service.impl;

import cn.dcp.muck.common.service.CrudService;
import cn.dcp.muck.entity.SysDept;
import cn.dcp.muck.mapper.SysDeptMapper;
import cn.dcp.muck.service.SysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service
public class SysDeptServiceImpl extends CrudService<SysDeptMapper, SysDept> implements SysDeptService {
	@Autowired
	private SysDeptMapper sysDeptMapper;

    @Override
    public SysDept queryObject(String id){
        return sysDeptMapper.get(id);
    }

	@Override
	public List<SysDept> queryList(Map<String, Object> map){
		return sysDeptMapper.queryList(map);
	}

	@Override
	public void deleteById(String id){
		sysDeptMapper.deleteById(id);
	}
	
	@Override
	public void delete(SysDept sysDept){
		sysDeptMapper.delete(sysDept);
	}
	
}
